package demo;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class Test1 {
    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader("Day13\\c.txt");
        FileWriter fw = new FileWriter("Day13\\d.txt");

        char [] chars = new char[1024];
        int len;
        while ((len=fr.read(chars))!=-1) {
            fw.write(chars,0,len);
        }
        fr.close();
        fw.close();
    }
}
